package com.dz.service;

import com.dz.dto.DishDTO;
import com.dz.dto.DishPageQueryDTO;
import com.dz.entity.Dish;
import com.dz.result.Result;
import com.dz.vo.DishVO;
import com.dz.vo.PageVo;

import java.util.List;

/**
 * @author 鄧浩奇
 * @classname DishService
 * @description
 * @since 2023/12/21 19:17
 **/

public interface DishService {
    PageVo page(DishPageQueryDTO queryDTO);

    DishVO getById(Long id);


    Result<String> updateById(DishDTO dishDTO);

    Result<String> insert(DishDTO dishDTO);

    Result<String> deleteByIds(List<Long> ids);

    Result<String> changeStatus(Long id, Integer status);

    List<Dish> getByCategoryId(Long categoryId);

    List<DishVO> getDishVoByCategoryId(Long categoryId);
}
